Removes previously set soft line breaks in a range of text.
OSStatus ATSUClearSoftLineBreaks (
ATSUTextLayout iTextLayout,
UniCharArrayOffset iRangeStart,
UniCharCount iRangeLength);
iTextLayout
A reference of type ATSUTextLayout. Pass a reference to an initialized text layout object. You cannot pass NULL for this parameter.
iRangeStart
A value of type UniCharArrayOffset.Pass the edge offset of the beginning of the range of text whose soft line break positions you want to remove. To indicate the beginning of the text buffer, pass the constant kATSUFromTextBeginning, described in Text Offset Constant. To indicate the entire text buffer, pass kATSUFromTextBeginning in this parameter and the constant kATSUToTextEnd in the iRangeLength parameter. If the offset is outside the text buffer, ATSUClearSoftLineBreaks returns the result code kATSUInvalidTextRangeErr.
iRangeLength
A value of type UniCharCount. Pass the length of the range of text whose soft line break positions you want to remove. To indicate the end of the text buffer, pass the constant kATSUToTextEnd, described in Text Length Constant. To indicate the entire text buffer, pass kATSUToTextEnd in this parameter and the constant kATSUFromTextBeginning in the iRangeStart parameter. If the range of text is outside the text buffer, ATSUClearSoftLineBreaks returns the result code kATSUInvalidTextRangeErr.